home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / out-of-phase-102-c / OutOfPhase 1.02 Source / OutOfPhase Folder / TrashTracker.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-23  |  750 b   |  28 lines  |  [TEXT/KAHL]

  1. /* TrashTracker.h */
  2.  
  3. #ifndef Included_TrashTracker_h
  4. #define Included_TrashTracker_h
  5.  
  6. /* TrashTracker module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Memory */
  12.  
  13. struct TrashTrackRec;
  14. typedef struct TrashTrackRec TrashTrackRec;
  15.  
  16. /* create a trash tracking record */
  17. TrashTrackRec*        NewTrashTracker(void);
  18.  
  19. /* dispose a trash tracking record & delete all blocks it contains */
  20. void                            DisposeTrashTracker(TrashTrackRec* Trash);
  21.  
  22. /* allocate a new block & store a reference in the trash record */
  23. /* blocks allocated from this routine are normal heap blocks which may be */
  24. /* used anywhere a block from AllocPtrCanFail() may be used. */
  25. char*                            AllocTrackedBlock(long NumBytes, TrashTrackRec* Trash);
  26.  
  27. #endif
  28.